package com.pure.service
{
	import mx.rpc.AsyncResponder;
	import mx.rpc.events.ResultEvent;

	public class ServiceResponder extends AsyncResponder
	{
		public function ServiceResponder()
		{
			super(result, fault);
		}
		
		override public function fault(e:Object):void
    	{
			trace("****** Fault *************");
			onFail(e as ResultEvent);
    	}
    	
    	override public function result(e:Object):void
    	{
			trace("****** Success *************");
			onSuccess(e as ResultEvent);
    	}
    	
    	public function onFail(event:ResultEvent):void
    	{
    		
    	}
    	
    	public function onSuccess(event:ResultEvent):void
    	{
    		
    	}
		
	}
}